Skip to content

Fix #1180 Add the ability to build filters completely locally#1181

Open
Alex-302 wants to merge 18 commits intomasterfrom
fix/1180_local_build_from_cache
Open

Fix #1180 Add the ability to build filters completely locally#1181
Alex-302 wants to merge 18 commits intomasterfrom
fix/1180_local_build_from_cache

Conversation

@Alex-302
Copy link
Copy Markdown
Member

@Alex-302 Alex-302 requested review from a team and slvvko March 28, 2026 18:40
Alex-302 and others added 4 commits March 29, 2026 00:03
Strip volatile metadata lines (Checksum, Diff-Path, TimeUpdated, Version)
from compiled filter files after build. Reduces noise when comparing
outputs between compiler versions.
Comment thread scripts/build/strip-generated-meta.ts
Comment thread scripts/build/strip-generated-meta.ts
Comment thread scripts/build/strip_generated_meta.js Outdated
Comment thread scripts/build/strip_generated_meta.js Outdated
Comment thread scripts/build/strip-generated-meta.ts
Comment thread scripts/build/strip_generated_meta.js Outdated
Comment thread scripts/build/strip_generated_meta.js Outdated
Comment thread scripts/build/strip-generated-meta.js Outdated
Comment thread scripts/build/build.js Outdated
Comment thread scripts/build/build.js Outdated
Comment thread package.json
Comment thread scripts/build/build.js
Comment thread scripts/build/strip-generated-meta.ts
Comment thread scripts/build/build.js
Comment thread scripts/build/build.js
Alex-302 and others added 8 commits April 28, 2026 00:02
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Copy link
Copy Markdown
Contributor

@maximtop maximtop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All previous blockers addressed. CI green. Two non-blocking nits left (dead code in build.js, missing --generate-cache in boolean flags test). LGTM otherwise — clean extraction of build config, solid test coverage, good docs.

LGTM

Comment thread scripts/build/build.js
Comment on lines +53 to +57
if (useCache && generateCache) {
// eslint-disable-next-line no-console
console.error('Error: --use-cache and --generate-cache are mutually exclusive.');
process.exit(1);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: this block is dead code now — validateFlags(flags) on line 32 already catches useCache && generateCache and exits at line 39. Safe to remove.

Comment on lines +28 to +39
'--no-patches-prepare',
'--strip-generated-meta',
]);

expect(flags.useCache).toBe(true);
expect(flags.noPatchesPrepare).toBe(true);
expect(flags.stripGeneratedMeta).toBe(true);
});

it('ignores unknown arguments', () => {
const flags = parseFlags(['--mode=unknown', '--foo']);
expect(flags.useCache).toBe(false);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: --generate-cache is missing from this test. The other three boolean flags are covered but generateCache is not asserted.

Suggested change
'--no-patches-prepare',
'--strip-generated-meta',
]);
expect(flags.useCache).toBe(true);
expect(flags.noPatchesPrepare).toBe(true);
expect(flags.stripGeneratedMeta).toBe(true);
});
it('ignores unknown arguments', () => {
const flags = parseFlags(['--mode=unknown', '--foo']);
expect(flags.useCache).toBe(false);
it('parses all boolean flags', () => {
const flags = parseFlags([
'--use-cache',
'--generate-cache',
'--no-patches-prepare',
'--strip-generated-meta',
]);
expect(flags.useCache).toBe(true);
expect(flags.generateCache).toBe(true);
expect(flags.noPatchesPrepare).toBe(true);
expect(flags.stripGeneratedMeta).toBe(true);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants